package com.ysd.lis.entity.callNum;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysd.lis.entity.BaseEntityJpa;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;

/***
 *@title 采样类型对照表(申请项目)
 *@author WH
 *@version 1.0.0
 *@create 2025/5/27 9:48
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("CALL_SAMPLE_VS_FEE_OR_SAM")
@Entity
@Table(name = "CALL_SAMPLE_VS_FEE_OR_SAM")
public class CallSampleVsFeeOrSam extends BaseEntityJpa {
    /**
     * 标本类型编码
     */
    @TableField("SAMPLE_TYPE_CODE")
    @Column(name = "SAMPLE_TYPE_CODE")
    private String sampleTypeCode;

    /**
     * 1样本/2申请
     */
    @TableField("TYPE")
    @Column(name = "TYPE")
    private String type;
    /**
     * 申请项目样本类型
     */
    @TableField("CODE")
    @Column(name = "CODE")
    private String code;

    /**
     * 排序码
     */
    @TableField("SEQ")
    @Column(name = "SEQ")
    private BigDecimal seq;

    /**
     * 对应名称
     */
    @TableField(exist = false)
    @Transient
    private String name;
}
